<template>
  <cjui-dialog v-model="dialogVisible" title="弹框标题" @closed="closed">
    <div>
      <p v-for="i in 30" :key="i">测试文本</p>
    </div>

    <template #footer>
      <el-button @click="close">
        取消
      </el-button>
    </template>
  </cjui-dialog>
</template>

<script lang="ts" setup>
const dialogVisible = ref(false)

// 弹框操作
function open() {
  dialogVisible.value = true
}
function close() {
  dialogVisible.value = false
}
function closed() {
}

defineExpose({
  open,
  close
})
</script>
